<?php
namespace app\index\model;

use think\Model;
class ClassModel extends Model
{
	protected $table="spr_class";
	protected $pk="mr_id";
	/**
		班级所对应的学生
	 */
	public function students()
	{
		return $this->hasMany("Student","s_class")->field("s_name,s_birthday,s_address");	
	}
	
}